package sessionbeans;

import javax.ejb.Remote;
import java.util.*;

@Remote
public interface RegistrationBeanRemote {
	
	/**
	 * 
	 * @return a list of all abilities admitted in the system
	 */
	List<String> getAbilityList();

	/**
	 * From the data received, it creates a new user in the database, iff the data respects certain rules
	 * @param userId
	 * @param password
	 * @param name
	 * @param surname
	 * @param eMail
	 * @param address
	 * @param city
	 * @return a boolean answer to the question "has been the new user created?"
	 */
	boolean createNewUser(String userId, String password, String name, String surname, String eMail, String address, String city, String ability);
}
